from poium import Page, Element


class ShareArticlePage(Page):
    share_article = Element(css='a[href="/user_article/add"]', describe="主页分享文章页面入口")
    article_title_input = Element(css='input[name="title"]', describe="文章标题输入框")
    article_link_input = Element(css='input[name="link"]', describe="文章链接输入框")
    share_btn = Element(css='input[value="分享"]', describe="确认分享按钮")
    top_username = Element(css='.account>a[href="/user/lg/index"]', describe="顶部栏用户名-用户中心页面入口")
    user_share_article = Element(css='a[href="/user/lg/shared_articles/1"]', describe="我分享的文章页面入口")
    share_article_list_1 = Element(css='.list_article li:first-child p a', describe="列表第一篇分享文章")
    del_share_article_list_1 = Element(css='.list_article li:first-child span a', describe="删除列表第一篇分享文章")
    ok_del = Element(xpath='//span[.="确定"]', describe="确实删除按钮")
